<!--
  @author nowind
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        基础数据PLAT/试点配置/渠道配置
    </blockquote>

    <div class="layui-card">

        <form method="POST" class="layui-form" action="/pilot/channel/price/list.action">
            <div th:replace="pilot/_query::query"></div>
        </form>

        <div class="layui-card-body">

            <div th:replace="pilot/_table::table"></div>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/pilot/channel/price/updateStatus.action')}">
                            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                            <button class="layui-btn layui-btn-sm" lay-event="stop">停用</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <a th:if="${#authPermit.checkPermit('/pilot/channel/price/addEditView.action')}"
                           lay-href="/pilot/channel/price/add.action" class="layui-btn layui-btn-sm layui-btn-primary"
                           lay-text="新增">+新增</a>
                    </div>
                </div>
            </script>
        </div>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasDetailView: [[${#authPermit.checkPermit('/pilot/channel/price/detail.action')}]],
        hasEditView: [[${#authPermit.checkPermit('/pilot/channel/price/addEditView.action')}]],
        hasDel: [[${#authPermit.checkPermit('/pilot/channel/price/delete.action')}]],
        items: [[${items}]],
        baseCategories: [[${baseCategories}]],
        servCategories: [[${servCategories}]],
        priceTypes: [[${priceTypes}]],
        productTypes: [[${productTypes}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        version: 201908070942,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        channel_price_list_js: "pilot/zmn.plat.channel.price.list",
    }).use(['index', 'channel_price_list_js']);

</script>
</body>
</html>